home *** CD-ROM | disk | FTP | other *** search
/ Champak 62 / Volume 62 - JOGO DISK .iso / Games / penguin_dinner.swf / scripts / __Packages / classes / ui / IntroScreen.as < prev    next >
Text File  |  2008-03-17  |  1KB  |  37 lines

  1. class classes.ui.IntroScreen extends classes.ui.AbstractWidget
  2. {
  3.    static var BUTTON_CLICKED = "button_clicked";
  4.    function IntroScreen()
  5.    {
  6.       super();
  7.       classes.core.SoundManager.getInstance().startMusicTrack("storm_loop");
  8.       this.doLater(this.init);
  9.    }
  10.    function init()
  11.    {
  12.       this.next_btn.addEventListener(classes.ui.TextButton.CLICK,this,"onButtonClick");
  13.    }
  14.    function onButtonClick(e)
  15.    {
  16.       var _loc0_ = null;
  17.       if((_loc0_ = e.target) === this.next_btn)
  18.       {
  19.          if(classes.core.SOManager.getInstance().__get__showHelpAtStart())
  20.          {
  21.             classes.core.SOManager.getInstance().__set__showHelpAtStart(false);
  22.             classes.ui.InstructionScreen.invokedFromMainMenu = false;
  23.             classes.core.Application.getInstance().gotoInstructionsScreen();
  24.          }
  25.          else
  26.          {
  27.             classes.core.Application.getInstance().gotoMapScreen();
  28.          }
  29.       }
  30.    }
  31.    function dispose()
  32.    {
  33.       this.next_btn.dispose();
  34.       super.dispose();
  35.    }
  36. }
  37.